<div class="modal-footer">
    {% if tipo == 'editar' %}
      {{ form_widget(edit_form.submit,{'attr':{'class':'btn btn-success'}}) }}
      {{ form_end(edit_form) }}
      <div  style="float:left">{{ form(delete_form)}}</div>
    {% elseif tipo == 'agregar' %}
      {{ form_widget(form.submit,{'attr':{'class':'btn btn-success'}}) }}
      {{ form_end(form) }}
    {% elseif tipo == 'ver' %}
      <a href="{{ path(ruta_editar, { 'id': entity.id }) }}" class="btn btn-success">
        Editar
      </a>
      <div  style="float:left">{{ form(delete_form) }}</div>
    {% endif %}
     <a href="{{ path(ruta_volver) }}" class="btn btn-primary">
       Volver
     </a>
</div>